package com.app.backend.activiti.dao;

import com.app.backend.activiti.entity.ActProcess;
import com.app.backend.common.base.BaseDao;

import java.util.List;

/**
 * @program: ActProcessDao
 * @description:
 * @author: Zhun.Xiao
 * @create: 2020-02-27 10:01
 **/
public interface ActProcessDao extends BaseDao<ActProcess, String> {
    List<ActProcess> findByProcessKey(String key);

    ActProcess findTopByProcessKeyOrderByVersionDesc(String processKey);

    ActProcess findByProcessKeyAndLatest(String key, Boolean latest);
}